package kr.hkit.powerjava.chapter12.interfaceex;

public class Book {
	private int number;
	private String title;
	private String author;
	
	public Book(int number, String title, String author) {
		this.number = number;
		this.title = title;
		this.author = author;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}

	public boolean equals(Book obj){
		if(this.number == ((Book)obj).number){
			return true;
		}else{
			return false;
		}
	}
	public int getLateFees(int days){
		return 0;
	}
	
	@Override
	public String toString() {
		return "Book [number=" + number + ", title=" + title + ", author="
				+ author + "]";
	}
	
	
}
